package com.duqc.response;

/**
 * @ClassName ResultEnum
 * @Description
 * @Author duqc
 * @Date 2021/9/7
 **/
public enum ResultEnum {
    SUCCESS(0, "操作成功"),
    FAILED(-1, "操作失败");

    private final int code;

    private final String message;

    ResultEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
